#ifndef D_PLANE_H
#define D_PLANE_H

namespace d_Math
{

class d_Plane {
 public:
  float equation[4];
  d_Vec3f origin;
  d_Vec3f normal;
  d_Plane(d_Vec3f origin, d_Vec3f normal);
  d_Plane(d_Vec3f p1, d_Vec3f p2, d_Vec3f p3);
  void drawCircle(float r);
  bool isFrontFacingTo(d_Vec3f direction);
  double signedDistanceTo(d_Vec3f point);
};

}

#endif

